package com.bsoft.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;


//事件类
public class NoticeEvent extends ApplicationEvent {

    private static final Logger logger = LoggerFactory.getLogger(NoticeEvent.class);

    /**
     * 接受信息
     */
    private Object message;

    public NoticeEvent(Object obj) {
        super(obj);
        this.message = obj;
        logger.info("add event success! message: {}", message);
    }

    public Object getMessage() {
        return message;
    }
}
